import { Application } from "egg";

export default (app: Application) => {
  const { router, controller } = app;
  const checktoken = app.middleware.checktoken();
  router.post('/admin/files/upfile', controller.ctrlFiles.upfile);
  router.get('/admin/files/qn-token', checktoken, controller.ctrlFiles.qnToken);
  router.get('/admin/files/list', checktoken, controller.ctrlFiles.getFileList);
  // router.post('/admin/files/remove', checktoken, controller.common.ctrlFiles.removeFile);

};
